package cn.com.chengq.drools.service.impl;

import cn.com.chengq.dao.UserDAO;
import cn.com.chengq.model.SysUser;
import cn.com.chengq.drools.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    @Override
    public void addUser(SysUser user) {
        System.out.println("Add User:" + user);
        userDAO.insertUser(user);
    }
}
